package com.chanzany.visitor.case1;

public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man("张刚"));
        objectStructure.attach(new Woman("丽莎"));

        objectStructure.display(new Success());

        objectStructure.display(new Fail());

        objectStructure.display(new Wait());
    }
}
